<?php

namespace App\Repository;

use App\Models\SysAgreement;

/**
 * @package App\Repository
 * @see SysAgreementRepository
 */
class SysAgreementRepository extends BaseRepository
{
    /**
     * @title 获取协议信息
     * @param string $route
     */
    public static function getAgreementByRoute( $route )
    {
        $agreement = SysAgreement::getInstance()
            ->where(['route' => $route])
            ->first();

        return $agreement;
    }
}